
public class Test {

    //类的实例化
    //访问WashMachine的成员变量跟成员方法
    public static void main(String[] args) {


        GirlFriend girlFriend = new GirlFriend("小美",18);
        String name2 = girlFriend.name2;
        int age2 = girlFriend.age2;
        girlFriend.eat();
        girlFriend.playGame();
        GirlFriend  girlFriend1 = new GirlFriend();

       Person person = new Person("唐人","男",20);

        System.out.println(person);


//        Date d1 = new Date();
//        Date d2 = new Date();
//        Date d3 = new Date();
//
//        d1.setDay(2025,2,6);
//        d2.setDay(2025,3,10);
//        d3.setDay(2025,6,14);
//
//        d1.setDay2(2025,2,6);
//        d2.setDay2(2025,3,10);
//        d3.setDay2(2025,6,14);
//
//        d1.printDate();
//        d2.printDate();
//        d3.printDate();


//        WashMachine washMachine = new WashMachine();
//        washMachine.brand="海尔";
//        washMachine.color="彩色";
//        washMachine.washClothes();
//        washMachine.dryClothes();
//        washMachine.setTime();
//
//        Dog dog = new Dog();
//        dog.name = "没过四级就当狗";
//        dog.age = 19;
//        dog.bags();
//        dog.eat();
//        dog.wag();
    }


}

